package com.itheima.stock.dto;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.format.DateTimeFormat;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.alibaba.excel.annotation.write.style.ContentFontStyle;
import com.alibaba.excel.annotation.write.style.ContentRowHeight;
import com.alibaba.excel.annotation.write.style.HeadRowHeight;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDate;

/**
 * @author 李智勇
 * @data 2025/11/11 20:14
 */
@Data
@HeadRowHeight(20)
@ColumnWidth(20)
@ContentRowHeight(15)
@ContentFontStyle(fontName = "微软雅黑")
public class StockInfoExcelDTO {
    @ExcelProperty(value = "编号",index = 0)
    private Integer num;
    @ExcelProperty(value = "成交量",index = 3)
    private Long tradeAmt;
    @ExcelProperty(value = "前收盘价",index = 4)
    private BigDecimal preClosePrice;
    @ExcelProperty(value = "振幅",index = 5)
    private BigDecimal amplitude;
    @ExcelProperty(value = "股票代码",index = 1)
    private String code;
    @ExcelProperty(value = "股票名称",index = 2)
    private String name;
    @ExcelProperty(value = "当前日期",index = 9)
    private LocalDate curDate;
    @ExcelProperty(value = "交易额",index = 6)
    private BigDecimal tradeVol;
    @ExcelProperty(value = "涨幅",index = 7)
    private BigDecimal increase;
    @ExcelProperty(value = "涨跌值",index = 8)
    private BigDecimal upDown;
    @ExcelProperty(value = "当前价格",index = 10)
    @DateTimeFormat(value = "yyyy年MM月dd日")
    private BigDecimal tradePrice;
}
